package com.test.redis;

import redis.clients.jedis.Jedis;

public class PubsubServerExample {
    private Jedis jedis;

    public PubsubServerExample(Jedis jedis) {
        this.jedis = jedis;
    }

    public void publish(String channel, String message) {
        jedis.publish(channel, message);
    }
}
